namespace ReportToolAPI.Models
{
    /// <summary>
    /// 配料信息查询请求
    /// </summary>
    public class IngredientRequest
    {
        public int DatabaseId { get; set; }
        public string Keyword { get; set; } = string.Empty;
    }

    /// <summary>
    /// 配料信息查询结果
    /// </summary>
    public class IngredientResult
    {
        public string ItemNo { get; set; } = string.Empty;
        public string Barcode { get; set; } = string.Empty;
        public string ItemName { get; set; } = string.Empty;
        public string Material { get; set; } = string.Empty;
        public string Standard { get; set; } = string.Empty;
        public string Weight { get; set; } = string.Empty;
        public string Condition { get; set; } = string.Empty;
        public string ProcessWay { get; set; } = string.Empty;
        public string Manufacturer { get; set; } = string.Empty;
        public string Origin { get; set; } = string.Empty;
        public string Attr3 { get; set; } = string.Empty;
        public string Attr4 { get; set; } = string.Empty;
        public string Attr5 { get; set; } = string.Empty;
        public string Attr6 { get; set; } = string.Empty;
    }

    /// <summary>
    /// 配料信息更新请求
    /// </summary>
    public class IngredientUpdateRequest
    {
        public int DatabaseId { get; set; }
        public string ItemNo { get; set; } = string.Empty;
        public string Material { get; set; } = string.Empty;
        public string Standard { get; set; } = string.Empty;
        public string Weight { get; set; } = string.Empty;
        public string Condition { get; set; } = string.Empty;
        public string ProcessWay { get; set; } = string.Empty;
        public string Manufacturer { get; set; } = string.Empty;
        public string Origin { get; set; } = string.Empty;
        public string Attr3 { get; set; } = string.Empty;
        public string Attr4 { get; set; } = string.Empty;
        public string Attr5 { get; set; } = string.Empty;
        public string Attr6 { get; set; } = string.Empty;
    }

    /// <summary>
    /// 配料信息删除请求
    /// </summary>
    public class IngredientDeleteRequest
    {
        public int DatabaseId { get; set; }
        public string ItemNo { get; set; } = string.Empty;
    }

    /// <summary>
    /// 检查货号请求
    /// </summary>
    public class IngredientCheckRequest
    {
        public int DatabaseId { get; set; }
        public string ItemNo { get; set; } = string.Empty;
    }

    /// <summary>
    /// 检查货号结果
    /// </summary>
    public class IngredientCheckResult
    {
        public bool ExistsInProperty { get; set; }  // 配料表中是否存在
        public bool ExistsInItem { get; set; }      // 商品信息表中是否存在
        public string ItemNo { get; set; } = string.Empty;
        public string Barcode { get; set; } = string.Empty;
        public string ItemName { get; set; } = string.Empty;
        public string Material { get; set; } = string.Empty;
        public string Standard { get; set; } = string.Empty;
        public string Weight { get; set; } = string.Empty;
        public string Condition { get; set; } = string.Empty;
        public string ProcessWay { get; set; } = string.Empty;
        public string Manufacturer { get; set; } = string.Empty;
        public string Origin { get; set; } = string.Empty;
        public string Attr3 { get; set; } = string.Empty;
        public string Attr4 { get; set; } = string.Empty;
        public string Attr5 { get; set; } = string.Empty;
        public string Attr6 { get; set; } = string.Empty;
    }
}

